package com.synergy.stockflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 编号规则
    */
@Schema(description="编号规则")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_code_rule")
public class SysCodeRule {
    /**
     * 编号
     */
    @TableId(value = "rule_id", type = IdType.ASSIGN_ID)
    @Schema(description="编号")
    private Long ruleId;

    /**
     * 规则编码
     */
    @TableField(value = "rule_code")
    @Schema(description="规则编码")
    private String ruleCode;

    /**
     * 规则名称
     */
    @TableField(value = "rule_name")
    @Schema(description="规则名称")
    private String ruleName;

    /**
     * 业务实体类型
     */
    @TableField(value = "entity_type")
    @Schema(description="业务实体类型")
    private String entityType;

    /**
     * 说明
     */
    @TableField(value = "description")
    @Schema(description="说明")
    private String description;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    @Schema(description="状态")
    private Byte status;

    /**
     * 多租户ID
     */
    @TableField(value = "tenant_id")
    @Schema(description="多租户ID")
    private String tenantId;

    /**
     * 创建人用户ID
     */
    @TableField(value = "create_by")
    @Schema(description="创建人用户ID")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description="创建时间")
    private Date createTime;

    /**
     * 更新人用户ID
     */
    @TableField(value = "update_by")
    @Schema(description="更新人用户ID")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description="更新时间")
    private Date updateTime;
}